
<template>
    <div class='sidebar'>
        <!-- <el-button @click="()=>result+=1">结果+1</el-button> -->
        <el-button @click="add">结果+1</el-button>
        结果：{{result}}
    </div>
</template>
<script >
// import {confirms} from '../../utils/helper'
export default ({
    name:'',
    components: {

    },
    data(){
        return{
            result:0
        }
    },
    methods:{
        add(){
            // debugger
            this.result+=1;
        }
        // async divClick(){
        //     console.log(await confirms('确定该教辅的副本?')); 
        // },
    }
})
</script>
<style lang="scss"  scoped>
.sidebar{
  background-color:#fff;
  width:338px;
}
</style>